// 编写规则
export const MoblieRules = {
  mobile: [
    {
      required: true,
      message: '手机不能为空',
      trigger: 'blur'
    },
    {
      pattern:
        /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/,
      message: '手机号码格式不正确',
      trigger: 'blur'
    }
  ],
  code: [
    {
      required: true,
      message: '密码不能为空',
      trigger: 'blur'
    },
    {
      pattern: /^[0-9]{6,}$/,
      message: '最少六位的数字',
      trigger: 'blur'
    }
  ]
}
